﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:local="clr-namespace:EIA.SLClient.ProjectManage.Basic"
	xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:EIA_SLClient_Utility_Behaviors="clr-namespace:EIA.SLClient.Utility.Behaviors;assembly=EIA.SLClient.Utility"
	mc:Ignorable="d"
	x:Class="EIA.SLClient.ProjectManage.Basic.ProjectTitleView"
	d:DesignWidth="640" d:DesignHeight="32">
	<UserControl.Resources>
		<local:ProjectTitleViewModel x:Key="ProjectTitleViewModelDataSource" />
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource ProjectTitleViewModelDataSource}}">
		<Grid>
			<Grid.ColumnDefinitions>
				<ColumnDefinition/>
				<ColumnDefinition Width="32"/>
			</Grid.ColumnDefinitions>
			<Button Style="{StaticResource bs_clear}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" Height="16" Grid.Column="2" Command="{Binding HideDetailCommand}">
				<Button.Background>
					<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/close-1.png"/>
				</Button.Background>
				<i:Interaction.Behaviors>
					<EIA_SLClient_Utility_Behaviors:Background4StateBehavior>
						<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundPressed>
							<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/close-2.png"/>
						</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundPressed>
						<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundNormal>
							<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/close-1.png"/>
						</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundNormal>
						<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundMouseOver>
							<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/close-2.png"/>
						</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundMouseOver>
						<EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundDisabled>
							<ImageBrush Stretch="Fill" ImageSource="/EIA.SLClient.ProjectManage.Basic;component/assets/img/close-1.png" Opacity="0.4"/>
						</EIA_SLClient_Utility_Behaviors:Background4StateBehavior.BackgroundDisabled>
					</EIA_SLClient_Utility_Behaviors:Background4StateBehavior>
				</i:Interaction.Behaviors>
			</Button>
			<TextBlock HorizontalAlignment="Left" Margin="8,0,0,0" TextWrapping="Wrap" d:LayoutOverrides="Height" VerticalAlignment="Center" Foreground="White" FontSize="14.667" Text="{Binding ProjectBasic.PrjName}"/>
		</Grid>
	</Grid>
</UserControl>
